﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MoreEPG.Helper
{
   
    public enum CustomMessageBoxImage
    {
        Error = 1,
        Information = 2,
        Question = 3,
        Alert = 4,
        None = 0
    }

    public enum CustomMessageBoxButton
    {
        OK = 0,
        OKCancel = 1,
        YesNo = 4,
        YesNoCancel = 3
    }


    public enum CustomDialogMessageResult
    {
        Cancel = 2,
        No = 7,
        None = 0,
        OK = 1,
        Yes = 6
    }

    public class CustomDialogMessage
    {
        public Action<CustomDialogMessageResult> Callback { get; private set; }
        public CustomMessageBoxImage customMessageBoxImage { get; set; }
        public CustomMessageBoxButton customMessageBoxButton { get; set; }
        public string Content { get; set; }



        public CustomDialogMessage(string content, CustomMessageBoxImage MsgBoxImage,CustomMessageBoxButton MsgBoxButton, Action<CustomDialogMessageResult> callback)
        {
            this.Content = content;
            this.customMessageBoxImage = MsgBoxImage;
            this.customMessageBoxButton = MsgBoxButton;
            this.Callback = callback;
        }

        public void ProcessCallback(CustomDialogMessageResult result)
        {
            if (this.Callback != null)
            {
                this.Callback(result);
            }
        }



    }

    
}
